<!DOCTYPE html>

<html lang="en-US">
<@common.header/>

<body class="page-sub-page page-profile page-account" id="page-top">
<!-- Wrapper -->
<div class="wrapper">
    <!-- Navigation -->
   <@common.nav/><!-- /.navigation -->
    <!-- end Navigation -->
    <!-- Page Content -->
    <div id="page-content">
        <!-- Breadcrumb -->
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="#">主页</a></li>
                <li class="active">个人中心</li>
            </ol>
        </div>
        <!-- end Breadcrumb -->

        <div class="container">
            <div class="row">
                <!-- sidebar -->
                <div class="col-md-3 col-sm-3">
                    <section id="sidebar">

                        <aside style="margin-top: 20px;">
                            <ul class="sidebar-navigation" style="font-size: 16px;font-weight: 700">
                                <li ><a href="/accounts/profile"><i class="fa fa-user"></i><span>个人信息</span></a></li>
                                <li><a href="/accounts/reset"><i class="fa fa-user"></i><span>修改密码</span></a></li>

                                <li ><a href="/house/ownlist"><i class="fa fa-home"></i><span>出售房产</span></a></li>
                                <li ><a href="/house/bookmarked"><i class="fa fa-heart"></i><span>关注房产</span></a></li>
                                <li><a href="/house/bookmarked"><i class="fa fa-heart"></i><span>百科收藏</span></a></li>
                                <li ><a href="/accounts/myReciveMsg"><i class="fa fa-comment"></i><span>我的消息</span></a></li>
                                <li class="active"><a href="/accounts/myleaveMsg"><i class="fa fa-comment"></i><span>我的留言</span></a></li>
                            </ul>
                        </aside>
                    </section><!-- /#sidebar -->
                </div><!-- /.col-md-3 -->
                <!-- end Sidebar -->
                <!-- My Properties -->
                <div class="col-md-9 col-sm-10">
                    <section id="my-properties">
                        <header><h1>我的留言</h1></header>
                        <div class="my-properties">
                            <div class="table-responsive">
                                <table class="table">
                                    <thead>
                                    <tr>

                                        <th>留言日志</th>
                                        <th>信息内容</th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                 <#list ps.list as user>
                                 <tr>
                                     <td style="width: 400px;">
                                         ${(user.userMsg.createTime?datetime)}  对 ${user.user.name}
                                         <a href="/agency/agentDetail?id=${user.user.id}"><img alt="" src="${user.user.avatar}" style="width: 105px;height: 78px"></a>
                                         留言
                                     </td>

                                     <td >
                                         ${(user.userMsg.msg)}
                                     </td>
                                 </tr>
                                 </#list>
                                    </tbody>
                                </table>
                            </div><!-- /.table-responsive -->
                            <!-- Pagination -->
                            <div class="center">
                                  <@common.paging ps.pagination/>
                            </div><!-- /.center-->
                        </div><!-- /.my-properties -->
                    </section><!-- /#my-properties -->
                </div><!-- /.col-md-9 -->
                <!-- end My Properties -->
            </div><!-- /.row -->
        </div><!-- /.container -->
    </div>
    <!-- end Page Content -->
    <!-- Page Footer -->
    <@common.footer/>
    <!-- end Page Footer -->
</div>

<@common.js/>
<!--[if gt IE 8]>
<script type="text/javascript" src="assets/js/ie.js"></script>
<![endif]-->
<script  type="text/javascript" >


    $(document).ready(function() {
        var errorMsg   = "${errorMsg!""}";
        var successMsg = "${successMsg!""}";
        if(errorMsg){
            errormsg("error",errorMsg);
        }
        if(successMsg) {
            successmsg("success",successMsg);
        }
    })

</script>
</body>
</html>